import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '@/pages/login/login.vue';
import HomePage from '@/pages/HomePage/homePage.vue';
import H1 from '@/pages/RoomStateForecastCalendar/RoomStateForecastCalendar.vue'; //预测优化模块
import H2 from '@/components/2';
import H3 from '@/pages/RoomStateForecastCalendarItem/test2_1_1.vue';
import H4 from '@/components/4';
import H5 from '@/components/5';

Vue.use(Router)

export default new Router({
  routes: [ //默认跳login
    {
      path: '/',
      name: 'Login',
      // redirect:'login',
      component: Login
    },
    {
      path: '/test1',
      name: '预测优化',
      menu: true,
      component: HomePage,
      iconFont: '&#xe892;',
      redirect: '/test1/test2_1',
      children: [{
          path: '/test1/test2_1',
          name: '房态预测日历',
          menu: true,
          component: H1,
          redirect: '/test1/test2_1/test2_1_1',
          children: [{
            path: '/test1/test2_1/test2_1_1',
            component: H3,
            name: '房态预测日历1',
          }]
        }, {
          path: '/test1/test2_2',
          name: '销售预测概况',
          menu: true,
          component: H1,
          redirect: '/test1/test2_2/test2_2_2',
          children: [{
            path: '/test1/test2_2/test2_2_2',
            component: H4,
            name: '销售预测概况2',
          }]
        }, {
          path: '/test1/test2_3',
          name: '销售决策中心',
          menu: true,
          component: H1,
          redirect:'/test1/test2_3/test2_3_3',
          children:[
            {
              path: '/test1/test2_3/test2_3_3',
              component: H5,
              name: '销售决策中心2',
            }
          ]
        },
        {
          path: '/test1/test2_4',
          name: '销售预留详情',
          menu: true,
          component: H1
        },
        {
          path: '/test1/test2_5',
          name: '渠道决策中心',
          menu: true,
          component: H1
        },
      ]
    },
    {
      path: '/test2',
      name: '预定进度',
      menu: true,
      component: HomePage,
      iconFont: '&#xe715;',
      redirect: '/test2/test2_1',
      children: [{
        path: '/test2/test2_1',
        name: '测试2-2',
        component: H2
      }]
    }, {
      path: '/test3',
      name: '团队',
      menu: true,
      iconFont: '&#xe650;',
      redirect: '/test3/test3-1',
      component: HomePage,
      children: [{
        path: '/test3/test3-1',
        name: '测试3-1',
        component: H3
      }]
    }, {
      path: '/test4',
      name: '分析报表',
      menu: true,
      iconFont: '&#xe63e',
      component: HomePage
    }, {
      path: '/test5',
      name: '经营指标',
      menu: true,
      iconFont: '&#xe61d;',
      component: HomePage
    }, {
      path: '/test6',
      name: '集团汇总',
      menu: true,
      iconFont: '&#xe66a;',
      redirect: '/test6/test6-1',
      component: HomePage,
      children: [{
        path: '/test6/test6-1',
        name: '测试6-1',
        component: H3
      }]
    }, {
      path: '/test7',
      name: '菜单设置',
      menu: true,
      iconFont: '&#xe677;',
      redirect: '/test7/test7-1',
      component: HomePage,
      children: [{
        path: '/test7/test7-1',
        name: '测试7-1',
        component: H3
      }]
    }
  ]
})
